// const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
//   transpileDependencies: true
// })
const path = require('path');

module.exports = {
  parallel: false, // 处理打包时的性能问题
  transpileDependencies: true,
  lintOnSave:false,
  devServer:{
    host:'0.0.0.0',
    port:9979,

  },
  pages: {
    index: {
      entry: 'src/main.js',
      template: 'public/index.html',
      filename: 'index.html',
      title: '组件文档库'
    }
  },
  chainWebpack: config => {
    config.module
      .rule('md')
      .test(/\.md$/)
      .use('vue-loader')
      .loader('vue-loader')
      .end()
      .use('markdown-loader')
      .loader(path.resolve(__dirname, './src/utils/markdown-loader.js'))
      .end();
  }
};